<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Grom Hellscream
 * Date: 11/2/12
 * Time: 11:33 AM
 * To change this template use File | Settings | File Templates.
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$document = JFactory::getDocument();

$item = $this->get('item');
if (!JFactory::getUser()->authorise('vast.vien.edit'))
{
    JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_vast&view=vast'));        
}
?>

<div id="crumbs">
    <div style="color: #222222;font-weight: normal;margin: 0;padding: 0">
        <a href="<?php echo JRoute::_('index.php?option=com_vast&view=vast') ?>">Trang chủ</a> »
        <span>Sửa thông tin viện</span>
    </div>
</div>

<div id="main" class="home">
    <h3 class="title green">Sửa thông tin viện khoa học và công nghệ Việt Nam</h3>
    
    <div class="form">
        <form class="commentform" action="<?php echo JRoute::_('index.php?option=com_vast&view=vien&layout=edit&id=' . $item['id']); ?>" method="post" id="vien" name="vien">
            
            <div class="row">
                <?php echo $this->form->getLabel('id'); ?>
                <?php echo $this->form->getInput('id'); ?>
            </div>
                    
            <div class="row">
                <?php echo $this->form->getLabel('hinhanh'); ?>
                <?php echo $this->form->getInput('hinhanh'); ?>
            </div>
            
            <div class="row">
                <?php echo $this->form->getLabel('gioithieu'); ?>
                <?php echo $this->form->getInput('gioithieu'); ?>
            </div>

            <div class="row">
                <?php echo $this->form->getLabel('cosovatchat'); ?>
                <?php echo $this->form->getInput('cosovatchat'); ?>
            </div>

            <div class="row">
                <?php echo $this->form->getLabel('chucnang'); ?>
                <?php echo $this->form->getInput('chucnang'); ?>
            </div>

            <div class="row">
                <?php echo $this->form->getLabel('hoatdong'); ?>
                <?php echo $this->form->getInput('hoatdong'); ?>
            </div>
            
            <div class="row">
                <?php echo $this->form->getLabel('cocautochuc'); ?>
                <?php echo $this->form->getInput('cocautochuc'); ?>
            </div>
            
            <div class="row">
                <?php echo $this->form->getLabel('nhanluckhoahoc'); ?>
                <?php echo $this->form->getInput('nhanluckhoahoc'); ?>
            </div>

            <div class="row">
                <input type="hidden" name="option" value="com_vast" />
                <input type="hidden" name="task" value="vien.update" />
            </div>
            
            <div class="row buttons">
                <button type="submit" class="button" id="submit"><?php echo JText::_('Cập nhật'); ?></button>
                <?php echo JHtml::_('form.token'); ?>
            </div>
        </form>
    </div>
</div>